package com.yonyou.cyxdms.sysAuth.service.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yonyou.cyx.framework.bean.dto.framework.RestResultResponse;
import com.yonyou.cyx.framework.controller.base.BaseController;
import com.yonyou.cyxdms.sysAuth.service.dto.LoginLogPO;
import com.yonyou.cyxdms.sysAuth.service.dto.PhoneLoginDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.UserDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.user.EmployeeDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.user.UserPO;
import com.yonyou.cyxdms.sysAuth.service.mapper.UserMapper;
import com.yonyou.cyxdms.sysAuth.service.service.RedisService;
import com.yonyou.cyxdms.sysAuth.service.service.manage.employee.EmployeeNewService;
import com.yonyou.cyxdms.sysAuth.service.service.manage.employee.EmployeeService;
import com.yonyou.cyxdms.sysAuth.service.utill.MD5Util;
import com.yonyou.cyxdms.sysAuth.service.utill.RandomValidateCodeUtil;
import com.yonyou.cyxdms.sysmanage.client.vo.employee.EmployeeVO;
import com.yonyou.cyxdms.sysmanage.client.vo.user.UserInfoVO;
import io.swagger.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpSession;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * @author wanghongyu modify by shortwarren
 * 二版登陆
 */
@RestController
@RequestMapping("/employeeNew")
@Api(value = "员工信息查询新")
public class EmployeeNewController extends BaseController {

    private final Logger logger = LoggerFactory.getLogger(EmployeeNewController.class);



    @Autowired
   private EmployeeNewService employeeNewService;



    @GetMapping("/getEmployees")
    public  List<UserInfoVO>  getEmployees() {
        return employeeNewService.queryConsultantList();
    }

}
